<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<link rel="stylesheet" type="text/css" href="<?php echo $base_url ;?>css/style2.css" />
        <title><?=$title?></title>

		<?php if(!isset($remove_jqueryui) && !$no_jquery){?>
		<link type="text/css" href="<?php echo $base_url ;?>js/jquery-ui-1.8.16.custom/css/ui-lightness/jquery-ui-1.8.16.custom.css" rel="Stylesheet" />	
		<script type="text/javascript" src="<?php echo $base_url ;?>js/jquery-ui-1.8.16.custom/js/jquery-1.6.2.min.js"></script>
		<script type="text/javascript" src="<?php echo $base_url ;?>js/jquery-ui-1.8.16.custom/js/jquery-ui-1.8.16.custom.min.js"></script>		
		<?php } ?>
		
		<?php if(!isset($remove_jquery_effects) && !$no_jquery){?>
		<script src="http://jquery-ui.googlecode.com/svn/tags/latest/ui/jquery.effects.core.js"></script>
		<?php } ?>
		
		<?php if(!isset($remove_blockui) && !$no_jquery){?>	
		<script type="text/javascript" src="<?php echo $base_url; ?>js/jquery.blockUI.js"></script>
		<?php } ?>
		
<script language="javascript">
		<?php if(!isset($remove_jqueryui) && !$no_jquery){?>$.noConflict();<?php } ?>
		var __base_url   = '<?php echo $base_url ;?>';
		var __csrf       = '<?php echo $csrf ;?>';
		var __ts		 = <?php echo time(); ?>;
</script>

<style type="text/css">
	.error_descr {
			font-weight:bold;
			color:red;
			display:none;
			padding:0;
			margin:0;
	}
	form tr.error{
		background-color: #FFDFDF !important;
		margin-bottom:3px !important;
	}
	#cookies-warning{display:none;text-align:center;padding:60px 0 30px 0;}
	#cookies-warning h2{margin-bottom:15px !important;}
</style>

	<?php
			$opts = read_options('', 'OBJECT');
			if($opts->link_color!='')
			{
			?>
				<style type="text/css"> #typeAccounts a { color: <?=$opts->link_color?> !important; } </style>
			<?php
			}		
	?>

	<?=$head_content?>
	
<style type="text/css">
	#menu{border-color: <?=$opts->color_menu_border?> !important;}
	#menu .item {border-top-color: <?=$opts->color_menu_item_top_border?> !important; border-bottom-color: <?=$opts->color_menu_item_bottom_border?> !important; background: <?=$opts->color_menu_item_background?> !important;}
	#menu .item a{color: <?=$opts->color_menu_item_link?> !important;}
</style>

<style type="text/css"> #typeAccounts a { color: <?=$opts->link_color?> !important; } </style>

<link type="text/css" href="<?php echo $base_url ;?>css/dynamic.css" rel="Stylesheet" />	

	</head>
	<body>
        <?=$header?>
		
					<div id="middle">
						<table cellpadding="0" cellspacing="0" border="0" width="100%">

							<tr valign="top">
								
								<td width="200">
									<?=$sidebar?>
								</td>
								<td style="width: 15px;">&nbsp;</td>

								<td id="content">
								<?=$content?>
								</td>

							</tr>
						</table>
					</div> <!-- <div id="middle"> -->		
		
<?=$footer?>	
		
	</body>
</html>
